package com.lightsaber.trade.as.dao.device;

import java.util.List;

import org.springframework.stereotype.Component;

import com.lightsaber.trade.as.entity.device.CommandPublishToDevice;
import com.lightsaber.trade.as.entity.device.Device;
import com.lightsaber.trade.core.dao.BaseDao;
@Component
public class CommandPublishToDeviceDao extends BaseDao<CommandPublishToDevice, String> {

    public List<CommandPublishToDevice> findNoReadInfo(Device device) {

        eq("device", device);
        eq("status", "NoRead");

        return list();
    }

}
